import org.apache.log4j.Logger;

public class MyApp {

    private static final Logger logger = Logger.getLogger(MyApp.class);

    public static void main(final String... args) {

        logger.trace("Entering application.");
        Bar bar = new Bar();
        if (!bar.doIt()) {
            logger.error("Bar+Didn't do it.");
        }
        BarBar barbar = new BarBar();
        if (!barbar.doIt()) {
            logger.error("BarBar+Didn't do it.");
        }
        logger.trace("Exiting application.");
    }
}